<div class="students view">
<h2><?php  echo __('Student');?></h2>
	<dl>
		<dt><?php echo __('Id'); ?></dt>
		<dd>
			<?php echo h($student['Student']['id']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Learningtype'); ?></dt>
		<dd>
			<?php echo $this->Html->link($student['Learningtype']['name'], array('controller' => 'learningtypes', 'action' => 'view', $student['Learningtype']['id'])); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Studentgroup'); ?></dt>
		<dd>
			<?php echo $this->Html->link($student['Studentgroup']['name'], array('controller' => 'studentgroups', 'action' => 'view', $student['Studentgroup']['id'])); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Studentstate'); ?></dt>
		<dd>
			<?php echo $this->Html->link($student['Studentstate']['name'], array('controller' => 'studentstates', 'action' => 'view', $student['Studentstate']['id'])); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Fio'); ?></dt>
		<dd>
			<?php echo h($student['Student']['fio']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Eng Fio'); ?></dt>
		<dd>
			<?php echo h($student['Student']['eng_fio']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Unic Number'); ?></dt>
		<dd>
			<?php echo h($student['Student']['unic_number']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Info'); ?></dt>
		<dd>
			<?php echo h($student['Student']['info']); ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Student'), array('action' => 'edit', $student['Student']['id'])); ?> </li>
		<li><?php echo $this->Form->postLink(__('Delete Student'), array('action' => 'delete', $student['Student']['id']), null, __('Are you sure you want to delete # %s?', $student['Student']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Students'), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Student'), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Learningtypes'), array('controller' => 'learningtypes', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Learningtype'), array('controller' => 'learningtypes', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Studentgroups'), array('controller' => 'studentgroups', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Studentgroup'), array('controller' => 'studentgroups', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Studentstates'), array('controller' => 'studentstates', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Studentstate'), array('controller' => 'studentstates', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Orders'), array('controller' => 'orders', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Order'), array('controller' => 'orders', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Studentfotos'), array('controller' => 'studentfotos', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Studentfoto'), array('controller' => 'studentfotos', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Studentinfos'), array('controller' => 'studentinfos', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Studentinfo'), array('controller' => 'studentinfos', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php echo __('Related Orders');?></h3>
	<?php if (!empty($student['Order'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Ordertype Id'); ?></th>
		<th><?php echo __('Number'); ?></th>
		<th><?php echo __('Date'); ?></th>
		<th><?php echo __('Student Id'); ?></th>
		<th><?php echo __('Order Info'); ?></th>
		<th class="actions"><?php echo __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($student['Order'] as $order): ?>
		<tr>
			<td><?php echo $order['id'];?></td>
			<td><?php echo $order['ordertype_id'];?></td>
			<td><?php echo $order['number'];?></td>
			<td><?php echo $order['date'];?></td>
			<td><?php echo $order['student_id'];?></td>
			<td><?php echo $order['order_info'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'orders', 'action' => 'view', $order['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'orders', 'action' => 'edit', $order['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'orders', 'action' => 'delete', $order['id']), null, __('Are you sure you want to delete # %s?', $order['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Order'), array('controller' => 'orders', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php echo __('Related Studentfotos');?></h3>
	<?php if (!empty($student['Studentfoto'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Student Id'); ?></th>
		<th><?php echo __('Foto'); ?></th>
		<th><?php echo __('Created'); ?></th>
		<th><?php echo __('Modified'); ?></th>
		<th class="actions"><?php echo __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($student['Studentfoto'] as $studentfoto): ?>
		<tr>
			<td><?php echo $studentfoto['id'];?></td>
			<td><?php echo $studentfoto['student_id'];?></td>
			<td><?php echo $studentfoto['foto'];?></td>
			<td><?php echo $studentfoto['created'];?></td>
			<td><?php echo $studentfoto['modified'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'studentfotos', 'action' => 'view', $studentfoto['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'studentfotos', 'action' => 'edit', $studentfoto['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'studentfotos', 'action' => 'delete', $studentfoto['id']), null, __('Are you sure you want to delete # %s?', $studentfoto['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Studentfoto'), array('controller' => 'studentfotos', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php echo __('Related Studentinfos');?></h3>
	<?php if (!empty($student['Studentinfo'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Student Id'); ?></th>
		<th><?php echo __('Gender Id'); ?></th>
		<th><?php echo __('Citizenship Id'); ?></th>
		<th><?php echo __('Foreignlanguage Id'); ?></th>
		<th><?php echo __('Number Acc'); ?></th>
		<th><?php echo __('Number Eduline'); ?></th>
		<th><?php echo __('Fio'); ?></th>
		<th><?php echo __('Eng Fio'); ?></th>
		<th><?php echo __('Enrollmentdate'); ?></th>
		<th><?php echo __('Passport Birthplace'); ?></th>
		<th><?php echo __('Passport Birthdate'); ?></th>
		<th><?php echo __('Passport Number'); ?></th>
		<th><?php echo __('Phone'); ?></th>
		<th><?php echo __('Mobile'); ?></th>
		<th><?php echo __('Email'); ?></th>
		<th><?php echo __('Moreinfo'); ?></th>
		<th><?php echo __('Educationline Id'); ?></th>
		<th class="actions"><?php echo __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($student['Studentinfo'] as $studentinfo): ?>
		<tr>
			<td><?php echo $studentinfo['id'];?></td>
			<td><?php echo $studentinfo['student_id'];?></td>
			<td><?php echo $studentinfo['gender_id'];?></td>
			<td><?php echo $studentinfo['citizenship_id'];?></td>
			<td><?php echo $studentinfo['foreignlanguage_id'];?></td>
			<td><?php echo $studentinfo['number_acc'];?></td>
			<td><?php echo $studentinfo['number_eduline'];?></td>
			<td><?php echo $studentinfo['fio'];?></td>
			<td><?php echo $studentinfo['eng_fio'];?></td>
			<td><?php echo $studentinfo['enrollmentdate'];?></td>
			<td><?php echo $studentinfo['passport_birthplace'];?></td>
			<td><?php echo $studentinfo['passport_birthdate'];?></td>
			<td><?php echo $studentinfo['passport_number'];?></td>
			<td><?php echo $studentinfo['phone'];?></td>
			<td><?php echo $studentinfo['mobile'];?></td>
			<td><?php echo $studentinfo['email'];?></td>
			<td><?php echo $studentinfo['moreinfo'];?></td>
			<td><?php echo $studentinfo['educationline_id'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'studentinfos', 'action' => 'view', $studentinfo['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'studentinfos', 'action' => 'edit', $studentinfo['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'studentinfos', 'action' => 'delete', $studentinfo['id']), null, __('Are you sure you want to delete # %s?', $studentinfo['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Studentinfo'), array('controller' => 'studentinfos', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
